<?php
class MatchController extends Zend_Controller_Action 
{
	public function init()
    {
        /* Initialize action controller here */
    	$this->_helper->layout->setLayout ( 'layout' );

    }
    public function indexAction()
    {
    	//Condtion to retrieve all tournaments 
	    	$oTournament = TournamentPeer::doSelect(new Criteria);
	    	$this->view->tournament = $oTournament; 
	    	
	    		
		//Condtion to retrieve news
			$newsUrl = "http://in.news.yahoo.com/rss/cricket";
    		$str = simplexml_load_file($newsUrl); 
    		$this->view->xml 	  = $str;	
    }
}

?>